﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Microsoft.EntityFrameworkCore;
using Digitalmes.Model.PlanningManagement;
using Digitalmes.Model;

namespace Digitalmes.ViewModel.PlanningManagement.ProductionPlanningVMs
{
    public partial class ProductionPlanningBatchVM : BaseBatchVM<ProductionPlanning, ProductionPlanning_BatchEdit>
    {
        public ProductionPlanningBatchVM()
        {
            ListVM = new ProductionPlanningListVM();
            LinkedVM = new ProductionPlanning_BatchEdit();
        }

        public override bool DoBatchEdit()
        {
            
            return base.DoBatchEdit();
        }
    }

	/// <summary>
    /// Class to define batch edit fields
    /// </summary>
    public class ProductionPlanning_BatchEdit : BaseVM
    {

        
        [Display(Name = "_Model._ProductionPlanning._Wo")]
        public string Wo { get; set; }
        [Display(Name = "_Model._ProductionPlanning._Sort")]
        public int? Sort { get; set; }
        [Display(Name = "_Model._ProductionPlanning._LineId")]
        public long? LineId { get; set; }
        [Display(Name = "_Model._ProductionPlanning._LineCode")]
        public string LineCode { get; set; }
        [Display(Name = "_Model._ProductionPlanning._ShiftId")]
        public long? ShiftId { get; set; }
        [Display(Name = "_Model._ProductionPlanning._ShiftCode")]
        public string ShiftCode { get; set; }
        [Display(Name = "_Model._ProductionPlanning._ProductId")]
        public long? ProductId { get; set; }
        [Display(Name = "_Model._ProductionPlanning._ProductCode")]
        public string ProductCode { get; set; }
        [Display(Name = "_Model._ProductionPlanning._ProductName")]
        public string ProductName { get; set; }
        [Display(Name = "_Model._ProductionPlanning._PlanStartTime")]
        public DateTime? PlanStartTime { get; set; }
        [Display(Name = "_Model._ProductionPlanning._PlanEndTime")]
        public DateTime? PlanEndTime { get; set; }
        [Display(Name = "_Model._ProductionPlanning._PlanQty")]
        public decimal? PlanQty { get; set; }
        [Display(Name = "_Model._ProductionPlanning._PlanStatus")]
        public WoStatusEnum? PlanStatus { get; set; }

        protected override void InitVM()
        {
           
        }
    }

}